package com.javasm.activitymgr;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.javasm.gg.Goods;

@TableName("am_activity_goods")
public class ActivityGoods {
  @TableId(type = IdType.ASSIGN_ID)
  private String id;
  private String activityId;
  private String goodsId;
  private Integer promotionAmount;//促销数量
  private String priceType;//绝对值/百分比
  private String percentage;//比例
  private Double aprice1;//市场活动价
  private Double aprice2;//商城活动价
  @TableField(exist = false)
  private Goods goods;

  public Goods getGoods() {
    return goods;
  }

  public void setGoods(Goods goods) {
    this.goods = goods;
  }

  public String getPriceType() {
    return priceType;
  }

  public void setPriceType(String priceType) {
    this.priceType = priceType;
  }

  public Double getAprice1() {
    return aprice1;
  }

  public void setAprice1(Double aprice1) {
    this.aprice1 = aprice1;
  }

  public Double getAprice2() {
    return aprice2;
  }

  public void setAprice2(Double aprice2) {
    this.aprice2 = aprice2;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getActivityId() {
    return activityId;
  }

  public void setActivityId(String activityId) {
    this.activityId = activityId;
  }

  public String getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(String goodsId) {
    this.goodsId = goodsId;
  }

  public Integer getPromotionAmount() {
    return promotionAmount;
  }

  public void setPromotionAmount(Integer promotionAmount) {
    this.promotionAmount = promotionAmount;
  }

  public String getPercentage() {
    return percentage;
  }

  public void setPercentage(String percentage) {
    this.percentage = percentage;
  }
}
